package com.cch.demo.bus.service.impl;

import java.util.LinkedHashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cch.demo.bus.mapper.SqlMapper;
import com.cch.demo.bus.service.SqlMapperService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 华哥
 * @since 2020-03-12
 */
@Service
@DS("master")
public class SqlMapperServiceImpl implements SqlMapperService {

	@Autowired
	public SqlMapper sqlMapper;
	
	@Override
	@DS("#DSname")
	public List<LinkedHashMap<String, Object>> executeSql(String DSname, String sql) {
		return sqlMapper.executeSql(sql);
	}

    
}
